import service from '../request';

const controller = "UserProcedureRecord";

function add(data:any):any{
    return service({
        method:'post',
        url:controller,
        data
    });
}



function getByProcedure(userProcedureId:number):any{
    return service({
        method:"get",
        url:controller + "/getByProcedure",
        params:{userProcedureId}
    });
}
function getAll():any{
    return service({
        method:"get",
        url:controller + "/getAll",
    });
}

export default{
    add,
    getByProcedure,
	getAll
}